import bb.cascades 1.3

Container {
    id: hcontainer
    
    property bool isDark: Application.themeSupport.theme.colorTheme.style == VisualStyle.Dark
    
    onTouch: {
        if (event.touchType == TouchType.Down){
            hcontainer.background = isDark ? Color.create("#ff101010") : Color.create("#fff8f8f8");
        }else if(event.touchType == TouchType.Up || event.touchType == TouchType.Cancel){
            hcontainer.background = Color.Transparent;//Qt.themeName == "dark" ? Color.create("#303030") : Color.White;
        }
    }
    
    onCreationCompleted: {
        hcontainer.background = Color.Transparent
    }
}
